using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace PortugalPremiumRealEstate.BusinessEntities
{
    public class SimpleImage
    {

        private int? m_id;

        public int? Id
        {
            get { return m_id; }
            set { m_id = value; }
        }

        byte[] m_contents;

        public byte[] Contents
        {
            get { return m_contents; }
            set { m_contents = value; }
        }
        string m_name;

        public string Name
        {
            get { return m_name; }
            set { m_name = value; }
        }

        public SimpleImage(string name, byte[] contents) : this(name, contents, null)
        { 
            
        }

        public SimpleImage(string name, byte[] contents, int? id)
        {
            m_id = id;
            m_name = name;
            m_contents = contents;
        }
    }
}
